﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Oroboros;
using Oroboros.Objects;
using Oroboros.Save_Data;

namespace Save_Editor.Windows
{
    /// <summary>
    /// Interaction logic for winHealthData.xaml
    /// </summary>
    public partial class winHealthData : Window
    {
        public winHealthData()
        {
            InitializeComponent();
        }

        private void healthOK(object sender, RoutedEventArgs e)
        {
            this.DialogResult = new bool?(true);
        }

        public HumanSaveData Human
        {
            get
            {
                return (HumanSaveData)this.DataContext;
            }
            set
            {
                this.DataContext = value;
            }
        }

        private void healthHeal(object sender, RoutedEventArgs e)
        {
            Human.Health.MaxHealth();
            healthOK(sender, e);
        }
    }
}
